<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use think\Db;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {
        //跳转cms首页
        // $this->redirect('/cms/index/index');
        $list = Db::name('bt')->where('status',2)->order('weigh desc')->select();
        
        $this->view->assign('list', $list);
        return $this->view->fetch();
    }

}
